<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.io.PrintWriter"%>
<%@ page import="java.util.*"%>
<%@ page import="javax.servlet.*"%>
<%@page import="model.TaiKhoanM"%>
<%@page import="dao.TaiKhoanD"%>
<%
	String query = request.getParameter("q");
	TaiKhoanD dao = new TaiKhoanD();
	ArrayList<TaiKhoanM> ls = dao.searchTK(query);
	int cnt = 1;
	for (int i = 0; i < ls.size(); i++) {
		out.print(ls.get(i).getTen_nguoi_dung() + "\n");
		if (cnt >= 10)
			break;
		cnt++;
	}
%>